<% form_tag({:controller => 'articles',  :action => 'search'}, {:method => 'get', :id => 'sform'}) do %>
 <label for="q">Live Search:</label><input type="text" id="q" name="q" value="" size="15" />
<%= image_tag "spinner-blue.gif", :id => 'search_spinner', :style => 'display:none;' %>
<% end %>
<%= observe_field "q", :frequency => 1,
    :url => { :controller => "live", :action => "search" },
    :loading => "Element.show('search_spinner')",
    :complete => "Element.hide('search_spinner')",
    :update => "search-results",
    :with => "'q=' + escape($F('q'))" -%>
